package com.skivingcloud.develop.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 组件数据库字段描述表 实体类。
 *
 * @author skivingcloud
 * @since 2025-01-16
 */
@Schema(description = "组件数据库字段描述表")
@Table("sys_form_designer_column")
public class SysFormDesignerColumn implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @Schema(description = "主键")
    private String id;

    /**
     * 组件ID
     */
    @Schema(description = "组件ID")
    private String formId;

    /**
     * 控件名称
     */
    @Schema(description = "控件名称")
    private String widgetName;

    /**
     * 字段名称
     */
    @Schema(description = "字段名称")
    private String columnName;

    /**
     * 字段类型
     */
    @Schema(description = "字段类型")
    private String columnType;

    /**
     * 字段长度
     */
    @Schema(description = "字段长度")
    private Integer columnLength;

    /**
     * 小数位数
     */
    @Schema(description = "小数位数")
    private Integer places;

    /**
     * 字段描述
     */
    @Schema(description = "字段描述")
    private String columnDes;

    /**
     * 是否子表单字段：0-否、1-是
     */
    @Schema(description = "是否子表单字段：0-否、1-是")
    private String subFormWidget;

    /**
     * 子表名
     */
    @Schema(description = "子表名")
    private String subFormName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    public String getWidgetName() {
        return widgetName;
    }

    public void setWidgetName(String widgetName) {
        this.widgetName = widgetName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public Integer getColumnLength() {
        return columnLength;
    }

    public void setColumnLength(Integer columnLength) {
        this.columnLength = columnLength;
    }

    public Integer getPlaces() {
        return places;
    }

    public void setPlaces(Integer places) {
        this.places = places;
    }

    public String getColumnDes() {
        return columnDes;
    }

    public void setColumnDes(String columnDes) {
        this.columnDes = columnDes;
    }

    public String getSubFormWidget() {
        return subFormWidget;
    }

    public void setSubFormWidget(String subFormWidget) {
        this.subFormWidget = subFormWidget;
    }

    public String getSubFormName() {
        return subFormName;
    }

    public void setSubFormName(String subFormName) {
        this.subFormName = subFormName;
    }

}
